package com.onetech.adrewards.free.activities;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.LinearLayout;

import com.google.analytics.tracking.android.EasyTracker;
import com.onetech.adrewards.free.dialogs.FeedbackDialog;
import com.onetech.adrewards.free.R;

public class UserGuideActivity extends BaseActivity {
	private View mFeedbackBtn = null;
	private Activity activity = null;
	//private WebView mUserGuideContent=null;
	
	@Override
	protected void onCreate(Bundle arg0) {
		super.onCreate(arg0);
		setMainView(R.layout.user_guide_layout);
		mFeedbackBtn = (LinearLayout) findViewById(R.id.feedbakBtn);
		mFeedbackBtn.setOnClickListener(this);
		//mUserGuideContent=(WebView)findViewById(R.id.user_guide_content);
		//mUserGuideContent.loadUrl("http://news.zing.vn");
	}
	@Override
	public void onClick(View v) {
		switch (v.getId()) {
		case R.id.feedbakBtn:
			FeedbackDialog mFeedbackDialog = new FeedbackDialog(activity);
			mFeedbackDialog.show();
			break;
		default:
			super.onClick(v);
			break;
		}
	}
	@Override
	  public void onStart() {
	    super.onStart();
	   // The rest of your onStart() code.
	    EasyTracker.getInstance(this).activityStart(this);  // Add this method.
	  }

	  @Override
	  public void onStop() {
	    super.onStop();
	    // The rest of your onStop() code.
	    EasyTracker.getInstance(this).activityStop(this);  // Add this method.
	  }
}
